import path from 'path';
import { InitTypeEnum, IBaseConfig } from '../models';

export class BaseService {

    static getConfig(): IBaseConfig {
        return {
            // initType: InitTypeEnum.interface, // interface compatible local
            record_log: "record_log",
            // cookie: 'login_region=; login_domain=; recent_project=389c2e613fb34182945a0e112e9226d2; ems_dashboard_api_language=zh-cn; escookie=1655086290.628.45056.651692|3c77762824bfdb4eab82f511c1ecb2c1; cookieOverviewWaring=0; csrftoken=9W2x5xvC9AyaK4BaEH5OT3P2LwOVQsdE; sessionid=rlr44zo0giecof7y23ico3pnlvz3ww9t'
        }
    }

    static getLogBasePath(): string {
        return path.join(process.cwd(), BaseService.getConfig().record_log);
    }
}
